/**
 * Created by novem on 2015/10/23.
 */
window.onload=function(){
    var userId=getUserId();
    var url = getUrl();
    $.jsonp({
        url: 'http://'+url+'/api/sameway/mysameway',
        data: {userId:userId},
        callbackParameter: "callback",
        success: function (data, textStatus, xOptions) {
            var complied_tpl = juicer($("#wode_tpl").text());
            var html = complied_tpl.render(data);
            $(".ui-container").append(html);
        },
        error: function (xOptions, textStatus) {
        }
    });
}
